home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / 8bit / cislib_b / tbdef.doc < prev    next >
Text File  |  1995-04-22  |  2KB  |  57 lines

  1.  Love TURBO BASIC but BIG DRAWBACK. I
  2. can't use all those nifty LOMEM
  3. routines I used for BASWDG. Bill W.
  4. always TOLD me not to do it, but did
  5. I listen? The Wages of LOMEM Abuse  
  6. *sigh*
  7.  
  8.  For a start, I came up with this.
  9. Using it is simple. RUN it, and  
  10. VIOLA! Whenever you RESET, the ML
  11. routine installed implements your
  12. choice of values for Screen Color
  13. (POKE 709), Text Color (POKE 710),
  14. Left Margin (POKE 82--I like 0 with
  15. TB, what with all those indents), and
  16. Keyboard Speed (POKE 729,POKE 730.)
  17. Much easier than typing in a bunch of
  18. POKEs, eh?
  19.  
  20.  If you want to change any of those
  21. in mid-session, you can either POKE
  22. the noted 'shadows' directly, or RUN
  23. the program again with new values.
  24.  
  25.               Memory?
  26.  
  27.  Now where to put it? With no little
  28. trepidation, I set it in the MIDDLE
  29. of the OS stack (Page One). As to
  30. whether this is ABSOLUTELY SAFE,
  31. well, don't be redikalous. Of COURSE
  32. it's not! But as these things go,
  33. it's about as safe as it gets. Just
  34. take care not to alter $125-$141
  35. (293-321) where the routine lives.
  36. I've not seen many programs that use
  37. it either, but you never know...So
  38. far, I've had no problems (knock on  
  39. veneer!)
  40.  
  41.            Techie Corner
  42.  
  43. The MAC65 source code is in
  44. RDEFML.XMO. Since who knows WHAT TB
  45. is doing with it's own resetting, I
  46. figgered the safest place to be was
  47. down in the seldom (not never) used
  48. CASINI Reset Vector. This is
  49. specifically designed so that it is
  50. NOT limited to Turbo Basic. ASM it to
  51. disk (or LIST the Basic program to
  52. disk), and you can use it with Atari
  53. Basic, even on an 800.
  54.  
  55. >>don lebow 70717,720
  56.                                      
  57. ╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱